package com.hxd.otc.main.persenter;

import com.hxd.otc.base.BaseBean;
import com.hxd.otc.main.contract.WelcomeContract;
import com.hxd.otc.main.model.WelcomeModel;
import com.hxd.otc.mvp.base.BasePresenter;

/**
 * 包  名 :  com.hxd.otc.main.contract
 * 类  名 :  WelcomePersenter
 * 作  者 :  zjl
 * 时  间 :  2019/1/4 10:33
 * 描  述 :  ${TODO}
 */
public class WelcomePersenter extends BasePresenter<WelcomeContract.View> implements WelcomeContract.Presenter {

    WelcomeModel model;

    public WelcomePersenter(WelcomeContract.View view) {
        super(view);
        model = WelcomeModel.getInstance();
    }

    @Override
    public void doDing(boolean isWelcomePage) {
        model.ping(mView.<BaseBean>bindAutoDispose(),isWelcomePage);
    }
}
